package com.shixun.dds_11.service.impl;

import com.shixun.dds_11.dto.OrderSubmitDTO;
import com.shixun.dds_11.entity.DdsOrderDetail;
import com.shixun.dds_11.mapper.DdsOrderDetailMapper;
import com.shixun.dds_11.service.IDdsOrderDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author YSP
 * @since 2024-07-05
 */
@Service
public class DdsOrderDetailServiceImpl extends ServiceImpl<DdsOrderDetailMapper, DdsOrderDetail> implements IDdsOrderDetailService {

    @Autowired
    private DdsOrderDetailMapper ddsOrderDetailMapper;

    /**
     * 提交方法
     * @param ordersDetailDTO
     */
    public void submit(OrderSubmitDTO ordersDetailDTO) {
        ddsOrderDetailMapper.save(ordersDetailDTO);
    }
}
